#ifndef _LOG_H
#define _LOG_H

#define LOGD(fmt, ...) printk(KERN_DEBUG "[scull][%s:%d] " fmt, __FILE__, __LINE__, ##__VA_ARGS__)
#define LOGI(fmt, ...) printk(KERN_INFO "[scull][%s:%d] " fmt, __FILE__, __LINE__, ##__VA_ARGS__)
#define LOGN(fmt, ...) printk(KERN_NOTICE "[scull][%s:%d] " fmt, __FILE__, __LINE__, ##__VA_ARGS__)
#define LOGW(fmt, ...) printk(KERN_WARNING "[scull][%s:%d] " fmt, __FILE__, __LINE__, ##__VA_ARGS__)
#define LOGE(fmt, ...) printk(KERN_ERR "[scull][%s:%d] " fmt, __FILE__, __LINE__, ##__VA_ARGS__)
#define LOGC(fmt, ...) printk(KERN_CRIT "[scull][%s:%d] " fmt, __FILE__, __LINE__, ##__VA_ARGS__)
#define LOGA(fmt, ...) printk(KERN_ALERT "[scull][%s:%d] " fmt, __FILE__, __LINE__, ##__VA_ARGS__)
#define LOGF(fmt, ...) printk(KERN_EMERG "[scull][%s:%d] " fmt, __FILE__, __LINE__, ##__VA_ARGS__)

#endif
